package com.ellricky.baselib.entity;

import com.contrarywind.interfaces.IPickerViewData;

import java.io.Serializable;

public class NameValuePickerEntity implements Serializable,IPickerViewData {

    private static final long serialVersionUID = -3261798335153186429L;

    private String name;
    private String value;

    public NameValuePickerEntity(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }
}
